package com.ssm.reflection;

import java.io.Serializable;

/**
 * Student
 *
 * @author hyl
 * @date 2024-11-27
 */
public class Student extends Person implements Serializable {
    private String sex;
    private String school;
    private String  classNo;
    private String stuNo;

    public Student(String name, int age, String sex, String school, String classNo, String stuNo) {
        super(name, age);
        this.sex = sex;
        this.school = school;
        this.classNo = classNo;
        this.stuNo = stuNo;
    }

    public Student(String name, int age) {
        super(name, age);
    }

    public Student() {
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getClassNo() {
        return classNo;
    }

    public void setClassNo(String classNo) {
        this.classNo = classNo;
    }

    public String getStuNo() {
        return stuNo;
    }

    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sex='" + sex + '\'' +
                ", school='" + school + '\'' +
                ", classNo='" + classNo + '\'' +
                ", stuNo='" + stuNo + '\'' +
                '}';
    }

    private void show(){
        System.out.println("测试");
    }
}
